/*
 * map_creator.h
 */

#ifndef MAP_CREATOR_H_
#define MAP_CREATOR_H_

#include "map_file.h"

/*
 * Returns 1 iff the given map name exists and is readable.
 */
int map_exists( const char *name );

/*
 * Creates a new map file of the given name with the given dimensions. If a map
 * with that name already exists, the function fails and returns 1.
 */
int create_map( const char *name, unsigned int height, unsigned int width );

/*
 * Write the given tile to the current map.
 */
int write_tile( struct map_tile *t );

/*
 * Close the current map.
 */
int close_map();

/*
 * Checks to see if maps/testmap.rgm exists, and if it doesn't, creates it.
 * Test Map is a 50x50 map of even surfaced tiles of the same type (grass).
 */
int create_test_map();

#endif
